﻿
using System.Net;
using System.Security.Cryptography.X509Certificates;
using System.Net.Security;

namespace EbookReader
{
    public partial class App : Application
    {
        public App()
        {
            InitializeComponent();

            ServicePointManager.ServerCertificateValidationCallback = ValidateServerCertificate;
            System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;

            MainPage = new MainPage();
            //Main main = new Main();
        }
        private static bool ValidateServerCertificate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
        {
            return true;
        }
    }
}
